package org.bulu.project.system.model.entity;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论表(Comment)实体类
 *
 * @author makejava
 * @since 2024-08-12 21:49:46
 */
public class Comment implements Serializable {
    private static final long serialVersionUID = -18087400590950840L;
    /**
     * 评论主id
     */
    private Integer id;
/**
     * 视频id
     */
    private Integer vid;
/**
     * 发送者id
     */
    private Integer uid;
/**
     * 根节点评论的id,如果为0表示为根节点
     */
    private Integer rootId=0;
/**
     * 父亲id
     */
    private Integer parentId=0;
/**
     * 回复目标用户id
     */
    private Integer toUserId=-1;
/**
     * 评论内容
     */
    private String content;
/**
     * 该条评论的点赞数
     */
    private Integer love=0;
/**
     * 不喜欢的数量
     */
    private Integer bad=0;
/**
     * 创建时间
     */
    private Date createTime;
/**
     * 是否置顶 0普通 1置顶
     */
    private Integer isTop=0;
/**
     * 软删除 0未删除 1已删除
     */
    private Integer isDeleted=0;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLove() {
        return love;
    }

    public void setLove(Integer love) {
        this.love = love;
    }

    public Integer getBad() {
        return bad;
    }

    public void setBad(Integer bad) {
        this.bad = bad;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

}

